<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Shopping Cart - Wholesale Electronics from</title>
<link href="../Public/css/cartes_1.css" rel="stylesheet" type="text/css" />
<load href="./Public/Js/jquery.min.js"/>
</head>

<body>
<div id="header">
   <div class="tlogo"><a href="http://wwww.{$domain}" ><img src="http://www.{$domain}/images/logo.gif"  /></a></div>
  <div class="trg"><img src="../Public/images/TS.JPG"  />
   <p><img src="../Public/images/sh2.gif" />Compre con confianza<br />
   <img src="../Public/images/sh2.gif" />Transacción privacidad</p></div>
   <ul class="toplb">
   <li><img src="../Public/images/shopping_07.gif" /></li>
   <li class="lba"><img src="../Public/images/shopping_16.gif" /></li>
   <li><img src="../Public/images/shopping_09.gif" /></li>
   <li class="lba"><img src="../Public/images/shopping_16.gif" /></li>
   <li><img src="../Public/images/shopping_11.gif" /></li>
   <li class="lba"><img src="../Public/images/shopping_16.gif" /></li>
   <li><img src="../Public/images/shopping_13.gif" /></li>
   </ul>
<div class="clear"></div>
</div>


<div id="content">
<form method="post" action="" name="form1" id="form1"> 
<div id="sidebar_left">   
<div class="bar_nav">
           <p><span class="STYLE1">Información sobre el producto</span></p></div>
           <div class="option">
            <label><span class="STYLE1">Transporte ：</span>
              <select id="ListBoxShipping" size="4" name="fist" onchange="shipping(this.value)">
                <option selected="selected" value="Air Mail,{@a.logisticsprice1}">Air Mail({$currency}{@a.logisticsprice1})</option>
                <option value="UPS/EMS Express,{@a.logisticsprice2}">UPS/DHL Express({$currency}{@a.logisticsprice2})</option>
              </select>
            </label>
      </div>
        
    <div class="pro_tab">
    <volist name="a" id="cart">   
   <table class="prnav_tab">
   <tr><td class="prbone">Producto</td><td>Cdad</td><td>Recio unitario</td><td class="prblast"></td></tr>
   </table>
    <table class="prin">
    <tr><td class="prbone">{$cart.productcode}</td>
         <input type="hidden" name="domain" id="domain" value="{@a.domain}" />
		<input type="hidden" name="currency_code" id="currency_code" value="{$currency_code}" />
         <td><input id="num{$cart.productcode}" name="n_{$cart.productcode}"  type="text" size="5" value="{$cart.num}" onChange="ChangeTotal(this);" maxlength="5" />
         <input class="cen" type="image" name="submit" src="../Public/images/shrg_03.gif" ></td>
         <td>{$currency}{$cart.n_price|number_format=###,2}</td>
         <td class="prblast"><a href="?a=delid&pidmo={$cart.productcode}&domain={@a.domain}&currency_code={$currency_code}"><img src="../Public/images/shrg_05.gif"  /></a></td>
   </tr></table>
   </volist>
         </div>
          <div class="prtl">
         <ul class="prtlf"><li>Transporte  ：</li><li>Producto  ：</li></ul>
         <ul class="prtlr STYLE4"><li><strong><span id="LiteralGrandTotal"><span id="LiteralShippingSubtotal">{$currency} {$a_prices-$a_price|number_format=###,2}</span></span></strong></li>
           <li><strong><span id="LiteralProductSubtotal">{$currency} {$a_price|number_format=###,2}</span></strong></li></ul>
           <ul class="prtll"><li class="tla STYLE1">Total  ：</li><li class="tlb STYLE4"><strong><span  id="total_js">{$a_prices|number_format=###,2}</span></strong></li></ul>
         </div>
         
        <span class="confr_pic"><img src="../Public/images/Continue_es2.gif" /></span> 
     </div>
     <input type="hidden" name="mo_b" id="mo_b" value="{$a_price|number_format=###,2}" />
	 <input type="hidden" name="mo_bb" id="mo_bb" value="{$a_price|number_format=###,2}" />
     <input type="hidden" name="proallnum" id="proallnum" value="{$proallnum}" />
 <script type="text/javascript">

function ChangeTotal(num)
{	var a=parseInt($(num).val());
	if(!isNaN(a))
	{
		if(a<1)
		{
			$(num).val(1);
		}else
		{
			$(num).val(a);
		}
	}else{
		$(num).val(1);
	}
	$("#form1").submit(); 
}

function shipping(val){
	
str=val.split(",");
$('#transportation').val(str[0]);
$('#logisticsprice').val(str[1]);
shipping2=parseFloat(str[1])*$('#proallnum').val();
$('#LiteralShippingSubtotal').html('{$currency} '+shipping2.toFixed(2));
mo_bb=$('#mo_bb').val();
reg=/,/gi;
mo_bb=mo_bb.replace(reg,'');
str[1]=parseFloat(mo_bb)+parseFloat(str[1])*$('#proallnum').val();
str[1]=str[1].toFixed(2);
str[1]=CommaFormatted(str[1]);
//$('#LiteralProductSubtotal').html('{$currency} '+str[1]);
$('#mo_b').val(str[1]);
$('#total_js').html($('#mo_b').val());
}

function CommaFormatted(amount) {
    var delimiter = ",";
    amount = new String(amount);
    var a = amount.split('.',2)
    var d = a[1];
    var i = parseInt(a[0]);
    if(isNaN(i)) { return ''; }
    var minus = '';
    if(i < 0) { minus = '-'; }
    i = Math.abs(i);
    var n = new String(i);
    var a = [];
    while(n.length > 3)
    {
        var nn = n.substr(n.length-3);
        a.unshift(nn);
        n = n.substr(0,n.length-3);
    }
    if(n.length > 0) { a.unshift(n); }
    n = a.join(delimiter);
    if(d.length < 1) { amount = n; }
    else { amount = n + '.' + d; }
    amount = minus + amount;
    return amount;
}



</script>
    </form>  
  <form method="post" action="?m=Index&a=sendorder" id="form11" onsubmit="return userinfo()">
     <div id="sidebar_right">
         <div class="bar_navrg">
           <p><span class="STYLE1">Información del cliente</span></p></div>
       <table class="bar_tabrg" cellspacing="5">
           <tr>
             <td class="tba">Nombre</td>
             <td><input type="text" name="first_name" id="yjfirst_name"/>&nbsp;&nbsp;<FONT 
                              color=#ff0000><span id="first_nameshow"></span>*</FONT></td>
           </tr>
           <tr>
             <td class="tba">Apellido</td>
       <td><input type="text" name="last_name" id="yjlast_name"/>&nbsp;&nbsp;<FONT 
                              color=#ff0000><span id="last_nameshow"></span>*</FONT></td>
           </tr>
           <tr>
             <td class="tba">Compañía</td>
           <td><INPUT maxLength=35 size=25 name=client_companyship></td>
           </tr>
           <tr>
             <td class="tba">Dirección</td>
             <td><input type="text" name="address1" id="yjaddress1" size="40" />
                  <FONT color=#ff0000><span id="address1show"></span>*</FONT></td>
           </tr>
           <tr>
             <td class="tba">(opcional)</td>
             <td><input type="text" name="address2" size="40"/></TD></TR>
           </tr>
           <tr>
             <td class="tba">Código postal</td>
             <td><input type="text" name="city" id="yjcity"/>&nbsp;&nbsp;<FONT color=#ff0000><span id="cityshow"></span>*</FONT></td>
           </tr>
           <tr><td class="td_main">Ciudad</td><td><input type="text" name="city" id="yjcity"/>&nbsp;&nbsp;<FONT 
                              color=#ff0000><span id="cityshow"></span>*</FONT></td></tr>
            <tr class="td_main"><td>Provincia</td><td><input type="text" name="state" id="yjstate"/><FONT 
                              color=#ff0000><span id="stateshow"></span>*</FONT></td></tr>                  
       <tr>
             <td class="td_main">País</td>
             <td class="td_main">
               <select id='country' 
                              name="client_countryship" length="15" onchange="updatecountry();">
                 <option value="">Seleccione un país</option>
                 <option value="ES" selected="selected">España</option>
                 <option value="AL">Albania</option>
                 <option value="DE">Alemania</option>
                 <option value="AD">Andorra</option>
                 <option value="AO">Angola</option>
                 <option value="AI">Anguila</option>
                 <option value="AG">Antigua y Barbuda</option>
                 <option value="AN">Antillas Holandesas</option>
                 <option value="SA">Arabia Saudí</option>
                 <option value="DZ">Argelia</option>
                 <option value="AR">Argentina</option>
                 <option value="AM">Armenia</option>
                 <option value="AW">Aruba</option>
                 <option value="AU">Australia</option>
                 <option value="AT">Austria</option>
                 <option value="BS">Bahamas</option>
                 <option value="BH">Bahréin</option>
                 <option value="BB">Barbados</option>
                 <option value="BE">Bélgica</option>
                 <option value="BZ">Belice</option>
                 <option value="BJ">Benín</option>
                 <option value="BM">Bermudas</option>
                 <option value="BT">Bhután</option>
                 <option value="BO">Bolivia</option>
                 <option value="BA">Bosnia y Hercegovina</option>
                 <option value="BW">Botsuana</option>
                 <option value="BR">Brasil</option>
                 <option value="BN">Brunéi</option>
                 <option value="BG">Bulgaria</option>
                 <option value="BF">Burkina Faso</option>
                 <option value="BI">Burundi</option>
                 <option value="CV">Cabo Verde</option>
                 <option value="KH">Camboya</option>
                 <option value="CA">Canadá</option>
                 <option value="TD">Chad</option>
                 <option value="CL">Chile</option>
                 <option value="C2">China</option>
                 <option value="CY">Chipre</option>
                 <option value="VA">Ciudad del Vaticano</option>
                 <option value="CO">Colombia</option>
                 <option value="KM">Comoras</option>
                 <option value="KR">Corea del Sur</option>
                 <option value="CR">Costa Rica</option>
                 <option value="HR">Croacia</option>
                 <option value="DK">Dinamarca</option>
                 <option value="DM">Dominica</option>
                 <option value="EC">Ecuador</option>
                 <option value="SV">El Salvador</option>
                 <option value="AE">Emiratos Árabes Unidos</option>
                 <option value="ER">Eritrea</option>
                 <option value="SK">Eslovaquia</option>
                 <option value="SI">Eslovenia</option>
                 <option value="US">Estados Unidos</option>
                 <option value="EE">Estonia</option>
                 <option value="ET">Etiopía</option>
                 <option value="PH">Filipinas</option>
                 <option value="FI">Finlandia</option>
                 <option value="FJ">Fiyi</option>
                 <option value="FR">Francia</option>
                 <option value="GM">Gambia</option>
                 <option value="GI">Gibraltar</option>
                 <option value="GD">Granada</option>
                 <option value="GR">Grecia</option>
                 <option value="GL">Groenlandia</option>
                 <option value="GP">Guadalupe</option>
                 <option value="GT">Guatemala</option>
                 <option value="GF">Guayana Francesa</option>
                 <option value="GN">Guinea</option>
                 <option value="GW">Guinea-Bissau</option>
                 <option value="GY">Guyana</option>
                 <option value="HN">Honduras</option>
                 <option value="HK">Hong Kong</option>
                 <option value="HU">Hungría</option>
                 <option value="IN">India</option>
                 <option value="ID">Indonesia</option>
                 <option value="IE">Irlanda</option>
                 <option value="NF">Isla Norfolk</option>
                 <option value="IS">Islandia</option>
                 <option value="KY">Islas Caimán</option>
                 <option value="CK">Islas Cook</option>
                 <option value="FO">Islas Feroe</option>
                 <option value="FK">Islas Malvinas</option>
                 <option value="MH">Islas Marshall</option>
                 <option value="PN">Islas Pitcairn</option>
                 <option value="SB">Islas Salomón</option>
                 <option value="TC">Islas Turcas y Caicos</option>
                 <option value="VG">Islas Vírgenes (Británicas)</option>
                 <option value="IL">Israel</option>
                 <option value="IT">Italia</option>
                 <option value="JM">Jamaica</option>
                 <option value="JP">Japón</option>
                 <option value="JO">Jordania</option>
                 <option value="KZ">Kazajistán</option>
                 <option value="KE">Kenia</option>
                 <option value="KG">Kirguistán</option>
                 <option value="KI">Kiribati</option>
                 <option value="KW">Kuwait</option>
                 <option value="LA">Laos</option>
                 <option value="LS">Lesotho</option>
                 <option value="LV">Letonia</option>
                 <option value="LI">Liechtenstein</option>
                 <option value="LT">Lituania</option>
                 <option value="LU">Luxemburgo</option>
                 <option value="MG">Madagascar</option>
                 <option value="MY">Malasia</option>
                 <option value="MW">Malawi</option>
                 <option value="MV">Maldivas</option>
                 <option value="ML">Malí</option>
                 <option value="MT">Malta</option>
                 <option value="MA">Marruecos</option>
                 <option value="MQ">Martinica</option>
                 <option value="MU">Mauricio</option>
                 <option value="MR">Mauritania</option>
                 <option value="YT">Mayotte</option>
                 <option value="MX">México</option>
                 <option value="FM">Micronesia</option>
                 <option value="MN">Mongolia</option>
                 <option value="MS">Montserrat</option>
                 <option value="MZ">Mozambique</option>
                 <option value="NA">Namibia</option>
                 <option value="NR">Nauru</option>
                 <option value="NP">Nepal</option>
                 <option value="NI">Nicaragua</option>
                 <option value="NE">Níger</option>
                 <option value="NU">Niue</option>
                 <option value="NO">Noruega</option>
                 <option value="NC">Nueva Caledonia</option>
                 <option value="NZ">Nueva Zelanda</option>
                 <option value="OM">Omán</option>
                 <option value="NL">Países Bajos</option>
                 <option value="PW">Palaos</option>
                 <option value="PA">Panamá</option>
                 <option value="PG">Papúa Nueva Guinea</option>
                 <option value="PE">Perú</option>
                 <option value="PF">Polinesia Francesa</option>
                 <option value="PL">Polonia</option>
                 <option value="PT">Portugal</option>
                 <option value="QA">Qatar</option>
                 <option value="GB">Reino Unido</option>
                 <option value="CZ">República Checa</option>
                 <option value="AZ">República de Azerbaiyán</option>
                 <option value="GA">República de Gabón</option>
                 <option value="CG">República del Congo</option>
                 <option value="CD">República Democrática del Congo</option>
                 <option value="DO">República Dominicana</option>
                 <option value="RE">Reunión</option>
                 <option value="RW">Ruanda</option>
                 <option value="RO">Rumanía</option>
                 <option value="RU">Rusia</option>
                 <option value="WS">Samoa</option>
                 <option value="KN">San Cristóbal y Nieves Anguila</option>
                 <option value="SM">San Marino</option>
                 <option value="PM">San Pedro y Miquelón</option>
                 <option value="VC">San Vicente y las Granadinas</option>
                 <option value="SH">Santa Elena</option>
                 <option value="LC">Santa Lucía</option>
                 <option value="ST">Santo Tomé y Príncipe</option>
                 <option value="SN">Senegal</option>
                 <option value="SC">Seychelles</option>
                 <option value="SL">Sierra Leona</option>
                 <option value="SG">Singapur</option>
                 <option value="SO">Somalia</option>
                 <option value="LK">Sri Lanka</option>
                 <option value="SZ">Suazilandia</option>
                 <option value="ZA">Sudáfrica</option>
                 <option value="SE">Suecia</option>
                 <option value="CH">Suiza</option>
                 <option value="SR">Surinam</option>
                 <option value="SJ">Svalbard y Jan Mayen</option>
                 <option value="TH">Tailandia</option>
                 <option value="TW">Taiwán</option>
                 <option value="TZ">Tanzania</option>
                 <option value="TJ">Tayikistán</option>
                 <option value="TG">Togo</option>
                 <option value="TO">Tonga</option>
                 <option value="TT">Trinidad y Tobago</option>
                 <option value="TN">Túnez</option>
                 <option value="TM">Turkmenistán</option>
                 <option value="TR">Turquía</option>
                 <option value="TV">Tuvalu</option>
                 <option value="UA">Ucrania</option>
                 <option value="UG">Uganda</option>
                 <option value="UY">Uruguay</option>
                 <option value="VU">Vanuatu</option>
                 <option value="VE">Venezuela</option>
                 <option value="VN">Vietnam</option>
                 <option value="WF">Wallis y Futuna</option>
                 <option value="YE">Yemen</option>
                 <option value="DJ">Yibuti</option>
                 <option value="ZM">Zambia</option>
               </select>
         </td>
           </tr>
           <tr>
             <td class="tba">Teléfono</td>
             <td><INPUT size=5 type="text" name="night_phone_a" id="yjnight_phone_a">
                             <INPUT size=6 type="text" name="night_phone_b" id="yjnight_phone_b"> 
                             <INPUT size=6 type="text" name="night_phone_c" id="yjnight_phone_c">&nbsp;&nbsp;
                             <FONT color=#ff0000>
                             <span id="night_phone_ashow"></span>
                             <span id="night_phone_bshow"></span>
                             <span id="night_phone_cshow"></span>
                             </FONT>
			</td>
           </tr>
           <tr>
             <td class="tba">Dirección de E-mail</td>
             <td><input type="text" name="email" id="yzemail"/>&nbsp;&nbsp;<FONT 
                              color=#ff0000><span id="emailshow"></span>* </FONT></td>
           </tr>
           <tr>
             <td class="tba">OBSERVACIÓN</td>
             <td><TEXTAREA rows=5 cols=40 name=client_remark></TEXTAREA></td>
           </tr>
       </table>
       
       <div class="conft"><p class="conft_te"><a href="#">Mi dirección de facturación no es la misma que mi dirección de envío.</a></p>
   		  <span class="conft_in"><input type="hidden" name="country" id="recountry" value="" />
			<input type="hidden" name="tracking" id="tracking" value="1" />
			<input type="hidden" name="destination" id="destination" value="Afghanistan" />
			<input type="hidden" name="transportation" id="transportation" value="Air Mail" />
			<input type="hidden" name="logisticsprice" id="logisticsprice" value="{@a.logisticsprice1}" />
			<input type="hidden" name="domain" id="domain" value="{@a.domain}" />
			 <input type="hidden" name="currency_code" id="currency_code" value="{$currency_code}" />
			<input type="image" src="../Public/images/next_es2.gif" /></span>
     </div>
     
     </div>
</form>  

     <div class="clear"></div>
</div>


<div class="foot">
   <div class="footer">
   <img src="../Public/images/shopping_39.gif" /><img src="../Public/images/shopping_41.gif"  /><img src="../Public/images/shopping_43.gif"  />
    <p> Derechos de autor © 2009-2050 Todos los derechos reservados.
</p>
   </div>
</div>
 <script type="text/javascript"><!--
 function showBilling(){
	    var bln_check = $('#isSame').attr('checked');
	    if(bln_check){
	        $('#div2').show();
	    }else{     
	        $('#div2').hide();   
	    }
	}

 function updatecountry(){
	 	
		document.getElementById('recountry').value=document.getElementById("country").value;
	}


 
 var yjfirst_name=document.getElementById('yjfirst_name');
 var first_nameshow=document.getElementById('first_nameshow');
 var yjlast_name=document.getElementById('yjlast_name');
 var last_nameshow=document.getElementById('last_nameshow');
 var yjaddress1=document.getElementById('yjaddress1');
 var address1show=document.getElementById('address1show');
 var yjzip=document.getElementById('yjzip');
 var zipshow=document.getElementById('zipshow');
 var yjcity=document.getElementById('yjcity');
 var cityshow=document.getElementById('cityshow');
 var yjnight_phone_a=document.getElementById('yjnight_phone_a');
 var yjnight_phone_b=document.getElementById('yjnight_phone_b');
 var yjnight_phone_c=document.getElementById('yjnight_phone_c');
 var night_phone_ashow=document.getElementById('night_phone_ashow');
 var night_phone_bshow=document.getElementById('night_phone_bshow');
 var night_phone_cshow=document.getElementById('night_phone_cshow');
 var oEmail=document.getElementById('yzemail');
 var emailshow=document.getElementById('emailshow');
 
 
	function userinfo(){
		 var user=new RegExp(/^[\w]/);
		 var email=new RegExp(/\w+.*@\w+.*\.\w+.*/);
		 var numzz=new RegExp(/^[0-9]*$/);
		 var address=new RegExp(/[\w]{4,}/);
	
		 if(!user.test(yjfirst_name.value))
		 {
			 first_nameshow.innerHTML='Le prénom est obligatoire !';
			   return false;
		 }else{first_nameshow.innerHTML='';}
		if(!user.test(yjlast_name.value))
		 {
			 last_nameshow.innerHTML='Le nom est obligatoire !';
			   return false;
		 }else {last_nameshow.innerHTML='';}
		if(!address.test(yjaddress1.value))
		 {
			 address1show.innerHTML='Le no. et le nom de la voie doivent être rensignés!';
			   return false;
		 }else {address1show.innerHTML='';}
		if(!user.test(yjzip.value))
		 {
			 zipshow.innerHTML='Le code postal est faux !';
			   return false;
		 }else {zipshow.innerHTML='';}
		if(!user.test(yjcity.value))
		 {
			 cityshow.innerHTML='La ville est obligatoire !';
			   return false;
		 }else {cityshow.innerHTML='';}
		if(!numzz.test(yjnight_phone_a.value))
		 {
			 night_phone_ashow.innerHTML='Le téléphone est obligatoire !';
			   return false;
		 }else {night_phone_ashow.innerHTML='';}
		if(!numzz.test(yjnight_phone_b.value))
		 {
			 night_phone_bshow.innerHTML='Le téléphone est obligatoire !';
			   return false;
		 }else {night_phone_bshow.innerHTML='';}
		if(!numzz.test(yjnight_phone_c.value))
		 {
			 night_phone_cshow.innerHTML='Le téléphone est obligatoire !';
			   return false;
		 }else {night_phone_cshow.innerHTML='';}
		if(!email.test(oEmail.value))
		 {
			emailshow.innerHTML="L'email n'est pas valide !";
			   return false;
		  }else{emailshow.innerHTML='';}
	}
	
--></script>
</body>
</html>
